package com.nfit.shopweb.mapper;

import com.nfit.shopmodel.entity.product.ProductSku;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * ClassName:productSkuMapper
 * Package:com.nfit.shopweb.mapper
 * Description
 *
 * @Author L
 * @Create 2024/12/19 11:07
 */
@Mapper
public interface ProductSkuMapper {

    void save(ProductSku productSku);

    void update(ProductSku productSku);

    /**
     * 根据商品id查询商品sku
     */
    List<ProductSku> findByProductId(Long id);
    /**
     * 根据商品id删除商品sku
     */
    void delete(Long id);
}
